<?php
class query
{
	var $query;
	var $action;
	var $froms = array();
	var $left_joins = array();
	var $inner_join = array();
	public __construction($q=null)
	{
		$query = $q;
	}
	
	public function addFrom($table_name, $alias)
	{
		$a = array($table_name, $alias);
		$froms[] = $a;
	}
	
	public function addLeftJoin($table_name, $onColumn)
	{
		$a = array($table_name, $onColumn);
		$left_joins[] = $a;
	}
	
	public function addInnerJoin($table_name)
	{
		$inner_join[] = $table_name;
	}
	
}
?>